package com.define.ssh.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.define.ssh.dao.RoleDao;
import com.define.ssh.model.Role;
import com.define.ssh.service.RoleService;

@Service("roleServiceImpl")
public class RoleServiceImpl extends BaseServiceImpl<Role, Long> implements
		RoleService {

	@Resource(name = "roleDaoImpl")
	private RoleDao roleDao;

	@Resource(name = "roleDaoImpl")
	public void setBaseDao(RoleDao roleDao) {
		super.setBaseDao(roleDao);
	}

	/***
	 * 获取除管理员以外的角色
	 * 
	 * @return
	 */
	@Override
	public List<Role> getRoleList() {
		return roleDao.getRoleList();
	}
}
